const GlobalModel = {
  state: {
    user: {
      nickname: null,
      id: null,
      email: null,
      marks: [],
    },
  },
  effects: (dispatch) => ({
    query(payload, state) { },
  }),
  reducers: {
    save(prevState, payload) {
      return {
        ...prevState,
        ...payload,
      };
    },
  },
};

export default GlobalModel;
